package oop.day03.HomeWork;

public class Fish extends Animal implements Swim
{
    Fish(String name, int age, String color)
    {
        super(name, age, color);
    }
    void eat()
    {
        System.out.println("there is a dog named " + name + " colored " + color + "  , " + age + "years old eating");
    }

    public void swim()
    {
        System.out.println("there is a dog named " + name + " colored " + color + "  , " + age + "years old swimming");
    }
}
